﻿<UserControl x:Class="SomethingSpacial.Views.Default.PastMeetings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:vm="clr-namespace:SomethingSpacial.ViewModel" >
    <UserControl.DataContext>
        <vm:PastEventsViewModel x:Name="vmEvents"  />
    </UserControl.DataContext>


    <Canvas x:Name="LayoutRoot" Width="500" Height="400"  >

        <StackPanel Orientation="Vertical" >
            <TextBlock x:Name="DisplayTitleTarget" Text="Past Meetings" HorizontalAlignment="Left" FontFamily="Verdana" FontSize="14" Foreground="{StaticResource MainControlTitleBrush}" />
            <StackPanel Orientation="Horizontal">
                <Border Height="453" Width="475" Background="White" CornerRadius="10" Padding="10">
                    <Border.Effect>
                        <DropShadowEffect Color="#FFADA4A4" ShadowDepth="3"/>
                    </Border.Effect>
                    <StackPanel VerticalAlignment="Top" Orientation="Vertical">
                        <ListBox  ItemsSource="{Binding Events}" 
                        			    ItemTemplate ="{StaticResource DataTemplatePastEvent}" 
                        			    Height="400" VerticalAlignment="Top" 
                        			    Margin="3,5,2,0" 
                        			    ScrollViewer.HorizontalScrollBarVisibility="Hidden"
                        			    ScrollViewer.VerticalScrollBarVisibility="Auto" 
                        			    BorderThickness="0" Width="420" />
                    </StackPanel>
                </Border>
            </StackPanel>
        </StackPanel>

    
       
    </Canvas>
</UserControl>
